package cn.crc.web.uservideo;

public class MyVideoListener { //extends VideoListenerAdapter
    /*private IMediaWriter mediaWriter;

    public MyVideoListener(String outputFilename) throws IOException {
        mediaWriter = ToolFactory.makeWriter(outputFilename);
        mediaWriter.addVideoStream(0, 0, IContainer.Type.MP4, 1280, 720);
        mediaWriter.addAudioStream(1, 0, IContainer.Type.MP4, 2, 44100, IPixelFormat.Type.YUV420P);
    }

    @Override
    public void onVideoPicture(IVideoPictureEvent event) {
        if (event.getPicture().getPixelType() == IPixelFormat.Type.YUV420P) {
            mediaWriter.encodeVideo(0, event.getPicture());
        }
    }

    public void close() {
        mediaWriter.close();
    }*/
}
